<?php  
require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');

if (isset ($_POST ['job']))
{  
	
	$id = key ($_POST['job']);

	
    $query=("DELETE FROM job WHERE ID_JOB=".$id);   
    mysql_query($query); 
	
header('Location: /mpd/view/sdm/historyjobgrade.php');
} else if (isset ($_POST ['grade']))
{  
	
	$id = key ($_POST['grade']);

	
    $query=("DELETE FROM grade WHERE ID_GRADE=".$id);   
    mysql_query($query); 
	
header('Location: /mpd/view/sdm/historygrade.php');
} else if(isset ($_POST ['core']))
{  
	
	$id = key ($_POST['core']);

	
    $query=("DELETE FROM core WHERE ID_CORE=".$id);   
    mysql_query($query); 
	
header('Location: /mpd/view/sdm/historyccandct.php');
}else if(isset ($_POST ['corp']))
{  
	
	$id = key ($_POST['corp']);

	
    $query=("DELETE FROM corporate WHERE ID_CORPORATE=".$id);   
    mysql_query($query); 
	
header('Location: /mpd/view/sdm/historyccandct.php');
}

?>